package com.avocado.base.enums.messages;

public enum OrganizationMessages {
	
	FAILED_MESSAGE_CODE_CAN_NOT_BE_DUPLICATE(0,"操作失败,代码已经存在，请重新填写!"),
	FAILED_MESSAGE_CODE_CAN_NOT_BE_EMPTY(1,"操作失败,代码不能为空!"),
	FAILED_MESSAGE_NAME_ZH_CAN_NOT_BE_EMPTY(2,"操作失败，中文名称不能为空!"),
	FAILED_MESSAGE_SEQ_NUM_CAN_NOT_BE_EMPTY(3,"操作失败，排序不能为空!"),
	FAILED_MESSAGE_EXIST_CHILDREN(4,"操作失败，存在子节点，请先删除子节点!");
	
	private  Integer index;
	
	private  String name;
	
    private OrganizationMessages(int index, String name) {
		this.index = index;
		this.name = name;
	}

    public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

 

}
